How to window.open on the homepage ?

They have: 16 posts

Joined: Sep 1999

What I know:

window.open("URL") opens this URL
window.open("") opens about:blank

What I want to know:

how to open the homepage ?

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")

------------------

They have: 16 posts

Joined: Sep 1999

No. I need to open browser's homepage, which is open when the browser starts.

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 ::

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's picture

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

They have: 231 posts

Joined: Feb 2000

You probably wont be able to do this for security reasons.

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.

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.