PDA

View Full Version : [javascript] open new page jump to bottom (ElementId/Value?)



radical3
August 15th, 2008, 11:59 AM
Basically what i want to do is open up another website's page in a small window and jump to the relevant section (basically jump to the bottom) how can i achieve this?

the code below is what i have so far, it works, as in the page opens, but it opens at an irrelevant area, i dont want to lose traffic by having the page open with scroll bars, resizeable handle and all the other bells and whistles, so users will navigate away.

javascript newbie please post full code, dont just recomend functions, fanx.


<Script Language="JavaScript">
function load() {
var load = window.open('http://www.domain.com','','scrollbars=no,menubar=no,heigh t=400,width=400,resizable=no,toolbar=no,location=n o,status=no');
}
// -->
</Script>


<a href="javascript:load()">Open Window</a>

LaRoza
August 15th, 2008, 12:17 PM
Basically what i want to do is open up another website's page in a small window and jump to the relevant section (basically jump to the bottom) how can i achieve this?

the code below is what i have so far, it works, as in the page opens, but it opens at an irrelevant area, i dont want to lose traffic by having the page open with scroll bars, resizeable handle and all the other bells and whistles, so users will navigate away.

javascript newbie please post full code, dont just recomend functions, fanx.


Try window.scrollTo()

Check the net for references.

Sorry, this is programming talk, not get free code on demand ;)

radical3
August 15th, 2008, 12:54 PM
alright forget it then:(

LaRoza
August 15th, 2008, 01:08 PM
alright forget it then:(

Or you can give the location you want to scroll to an id and use the uri to tell it where to scroll. That would be easier.

Like: http://ubuntuforums.org/showthread.php?p=5593610#post5593610