iEntry 10th Anniversary Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > JavaScript

Reply
 
LinkBack Thread Tools
Old January 18th, 2008, 08:20 AM   #1
New Member
 

Join Date: Jan 2008
Location: uk
Age: 42
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 nsr500rossi is on a distinguished road
Change open in new window to open in same window

Hi
i have this code and all is working fine except i want it to open in the same window, not a new window,

Code:
$halves[1] .= "link=\"javascript:NewWindow=window.open('http://www.michaelshuttleworth.com/Payment_page.php?name=" . $fileid . ".jpg&album=" . $album . "','myWindow','width=300,height=730,toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes');NewWindow.focus(); void(0);\"";
Can anyone help please, i know it is simple but i am going round i circles
Many thanks
Mike
nsr500rossi is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old January 18th, 2008, 11:10 AM   #2
WebForumz Member
 

Join Date: Jan 2008
Location: London
Age: 19
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Bravo81 is on a distinguished road
Re: Change open in new window to open in same window

Please be a bit more detailed,

You want the link to open a new window? but clicking the link again will just change the window opened before?

Of do you want it to change the current pages URL & size?
Bravo81 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old January 18th, 2008, 11:13 AM   #3
Reputable Member
 

Join Date: Nov 2007
Location: India
Posts: 150
Blog Entries: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 RohanShenoy is on a distinguished road
Re: Change open in new window to open in same window

I think he wants that javascript link to open as a usual hyperlink (<a></a>) instead.
I think it would be simpler to use anchor tags instead of javascript
RohanShenoy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Open another new window from javascript window thehermitage JavaScript 10 January 27th, 2008 04:42 PM
[SOLVED] open new window from main window AdRock Other Languages 1 November 1st, 2007 12:45 AM
Need to open ALL links in new window javascript JavaScript 4 August 4th, 2006 03:46 PM
Open a new window pokerskatershark JavaScript 4 March 17th, 2006 04:25 PM


Search Engine Optimization by vBSEO 3.2.0 RC8