Joined: Sat Jun 23, 2007 10:26 am Posts: 2 Has thanked: 0 time Have thanks: 0 time
Hi Friends, I have a situation here. I want a page to be loaded immediately when the browser(any) is clicked. It can be set to home page. But, I want to do it using java script. How to do? And , I want another page or tab to be opened when that page opens.i.e. Pop up. If, its clicked one time, cookie has to be set and should not pop-up again. Expecting your code or logic. Thank you.
Last edited by msi_333 on Sat Jan 03, 2009 11:40 am, edited 1 time in total.
Title changed :)
msi_333
Question subject: Re: WEb Browser
Posted: Sat Jan 03, 2009 11:39 am
Joined: Tue Mar 27, 2007 10:55 pm Posts: 2279 Location: Earth Has thanked: 39 time Have thanks: 61 time
Using the
Code:
window.open('url to open','window name','attribute1,attribute2')
This function will allow you to open in a new window
1. 'url to open' The URL address of the web page you are going to open.
2. 'window name' Name of the window (To make a Reference to it later)
3. 'attribute1,attribute2' There many attributes , you chose the attribute you want to adjust in it.
_________________ Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )
jenarthan
Question subject: Re: new window using javascript
Posted: Tue Jan 06, 2009 10:38 am
Joined: Sat Jun 23, 2007 10:26 am Posts: 2 Has thanked: 0 time Have thanks: 0 time
Thanks for you reply. But, this is not what i want. This opens a new window. But, for setting up as home page.. document.body.style.behavior= 'url(#default# homepage) '; document.body.setHomePage("http://www.yahoo.com");
This piece of code works with IE5 and other browser with less compatability. But nopt with mozilla or IE7. I need a code for this. If possible kindly help me on this. Thank you. -jena