How to window.open on the homepage ?
What I know:
window.open("URL") opens this URL
window.open("") opens about:blank
What I want to know:
how to open the homepage ?
What I know:
window.open("URL") opens this URL
window.open("") opens about:blank
What I want to know:
how to open the homepage ?
jsbond posted this at 09:05 — 9th May 2000.
They have: 2 posts
Joined: May 2000
If ur opening a home page of website.. first check out the name of the homepage.. (i.e.,) either default.htm or default.asp or index.html or index.asp.. and use the window.open("default.asp")
------------------
Jury Gerasimov posted this at 23:38 — 9th May 2000.
They have: 16 posts
Joined: Sep 1999
No. I need to open browser's homepage, which is open when the browser starts.
Lloyd Hassell posted this at 05:34 — 10th May 2000.
They have: 231 posts
Joined: Feb 2000
Why would you want to do this?
Take a look at this link for setting a site as a homepage. You might be able to play around with the code to get the homepage value. But don't count on it.
http://www.dynamicdrive.com/dynamicindex11/addhome.htm
:: Lloyd Hassell :: http://www14.brinkster.com/lloydh ::
Jury Gerasimov posted this at 23:48 — 10th May 2000.
They have: 16 posts
Joined: Sep 1999
Take a look at www.softshape.com/survey.stm . When you click on "Click here for assistance" you will see the window with instruction. I would prefer to open this window right on the homepage.
Suzanne posted this at 02:00 — 11th May 2000.
She has: 5,507 posts
Joined: Feb 2000
... as in with the rest of the stuff there, too? So an additional piece of the page? You would have to do that with DHTML to make a layer/div visible.
But, it doesn't open anything (missing function?) at the moment, and if they are really confused, why not just open a help page into the same browser window with a regular HTML hyperlink and use JavaScript on the help page to get them back to the right page (history.back())?
??
Suzanne
------------------
Zero Cattle
Suzanne
Tables DeMystified
Lloyd Hassell posted this at 06:31 — 12th May 2000.
They have: 231 posts
Joined: Feb 2000
You probably wont be able to do this for security reasons.
Jury Gerasimov posted this at 02:15 — 13th May 2000.
They have: 16 posts
Joined: Sep 1999
But I am able to go to the homepage in the current window. I mean, I can run javascript which opens homepage in the current window. But I can't do this in the new window automatically. I tried to window.open blank window and then write its content using document.write and set the homepage navigation to window.onLoad event. Unfortunately, events seems don't work when they're created using document.write.
Lloyd Hassell posted this at 06:10 — 13th May 2000.
They have: 231 posts
Joined: Feb 2000
Could you post the code you use to display the homepage? Then I can have a go at it.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.