|
Web design and Programming Discuss website creation and other programming topics. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||
|
Help with javascript
Hey all,
I need some help with this. I have a site I have designed and my client would like his popup to close and redirect the parent by clicking a link or image. The only problem is that the site is made with frames. The particular page he wants to be redirected to should be in the frame not by itself. Is there a way to redirect it to the frame and have a specific page load into it? I'll try to be more clear: I want the link on the popup to say: Click here for details And I want that to go back to the parent: /index.htm with: /kushfilmfest.html in the frame, and the popup to close. Link to Site I can make the popup close when the link or image is clicked, but I cant get the parent to go to the specific page IN the site main frame. I have searched for days looking for the answer to this. I'm cool with telling my client that it cant happen, but would rather get it working. Thanx for any help. |
#2
|
||
|
Don't exactly know if it works with frams, but add the target maybe it will work.
<a href="javascript:window.opener.location.href='_URL _';window.close()">_IMG OR OTHER_</a> Frame maybe this will work, added target="" <a href="javascript:window.opener.location.href='URL' ;window.close()" target="FRAME_NAME">IMG OR OTHER</a>
__________________
04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq |
#3
|
||
|
Another Way:
<a href="#" onclick="parent.FRAM_NAME.location.href='FILE_NAME ;window.close()'">Test</a>
__________________
04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq |
#4
|
||
|
Thanx man. I'll try those now.
|
#5
|
||
|
Ok I used your code and made a change to the way I had it set up, and it works.
Thanks P. [a href="javascript:window.opener.location.href='_URL _';window.close()"target="_top"><b><font color="#000000">Click for Details</font></b></a] (I used <> instead of [], of course lol) |
#6
|
||
|
Good deal
__________________
04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
JavaScript image | tail_gunner | Web design and Programming | 2 | 05-27-2007 11:05 AM |
Javascript BBCode insertion | Lakie | Web design and Programming | 5 | 01-05-2007 03:27 AM |
JavaScript Help! | Webviper2006 | Web design and Programming | 9 | 02-05-2006 12:56 AM |
javascript | King | Web design and Programming | 3 | 01-03-2005 11:35 AM |