Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Javascript only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
Javascript
How do i open a hyperlink in parent page using javascript?
How do i open a hyperlink in parent page using javascript?
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
ruchinagaich1
New Member
Join Date:
May 2007
Posts:
1
#1
How do i open a hyperlink in parent page using javascript?
May 7 '07, 05:30 AM
Please tell me,
How do i open a hyperlink in parent page using javascript?
acoder
Recognized Expert
MVP
Join Date:
Nov 2006
Posts:
16032
#2
May 7 '07, 05:56 PM
What do you mean by opening a hyperlink? Do you mean visiting the link? In the same window or opening another one?
To access the parent page, try:
Code:
window.opener
The
links
collection will give you the links in a document. If you have given the link an id, it is even easier:
Code:
window.opener.document.getElementById(linkid)
To change the location:
Code:
location.href=newurl
If you still have problems, post your code.
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment