On List Box Change Event Open New Url In Current Window

Jul 20, 2005

How do I on the change event of a list box open a new url in the current window in which the list box resides. I'm not using frames.

View 2 Replies


ADVERTISEMENT

Bookmarklet Parse URL - Take The Current URL Of The Page And Open A New Window With A URL Based On The Current Page?

Mar 16, 2009

I'm trying to create two bookmarklets:

1. Take the current URL of the page and open a new window with a URL based on the current page. Some examples (I use "->" to mean "this URL turns into that URL"):I plan to use these bookmarklets in sequence, first pressing 1 to log into the CMS, then pressing 2 to edit the current page.

View 5 Replies View Related

Open Another Site In New Window When Current Window Is Closed

Mar 26, 2006

I've seen sites that do this and was wondering if anybody could has the code to do it.

View 5 Replies View Related

Open New File In Current Window

Jul 23, 2005

I have a window open, let's say index.html. On the page I have a link that executes a javascript. I want the javascript to open file new.html in the same window that index.html was displayed in. How do I do this? Everything I try opens a new window.

View 2 Replies View Related

JQuery :: Open Links In New Window Under The Current?

Dec 29, 2009

I have 30 or 40 different (going to different websites) links on many pages on my website, that I when clicked I need opening under the current window. (Pop-under) - but obviously needs to be done safely (no risk of being pop-up blocked??)So rather than just a target="_blank" - it would be something slightly more complicated, doing a bit of research perhaps the .blur method would help (Though really I have no idea)I'm using the jQuery library for other elements on the site, so jQuery would be ideal if there is a solution for this?If you click on "get code and open site" (Green button) - you'll see it opens up the website under the current window - which is exactly what I want to achieve (It also uses .toggle to switch divs (but i've done that part - just need help with pop-unders

View 4 Replies View Related

Child Window Close Event - Opening Another Link In A Separate Window Using Window.open()

Jan 29, 2010

I have a HTML and I am opening another link in a separate window using window.open() . The child window is something like 'http://yahoo.com' which is out side html. I need to refresh the parent window when the child window is closed.

View 4 Replies View Related

Close The Current Window Then Open'ConfirmPage.aspx'?

Oct 2, 2007

I have a piece of javascript that is generated like so...

strText += "<img style='cursor:hand' src='Resources/SurveyButtons/
Close.gif' onClick=javascript:window.open('ConfirmPage.aspx?
DisplayHeader=Yes&SurveyID=" + lngSurveyID + "','Results')>";

In the onclick event I want to close the current window then open'ConfirmPage.aspx'. Whats the best way to do this? Can I close the
first page then open the next, or should I be redirecting? If so whats the
best way to redirect using javascript?

View 2 Replies View Related

Open A New Window And Close The Current Popup In One Click?

Nov 21, 2010

Here's what I have so far, it doesn't work:

HTML Code:

I have a popup that submits a link. After the link is submitted, I want the user to be able to close the popup and go to the submitted link in one click. How can I do this.

I have my reasons for using popups, it's hard to explain. Please don't tell me how bad popups are, I know they're bad.

View 2 Replies View Related

Click On A Link To Open It In A New Window/tab WITHOUT Leaving The Current Page

Sep 24, 2007

Basically I want some of the links in my page to open in new tabs (I'm
using Firefox) or windows if the user has their options configured
that way. And I want my page to remain intact as it involves some AJAX
and takes a while to load.

But ...and this seems to be a big "but"... I don't want the focus to
move away from the page I'm on. So techniques such as <a
target="_blank"or <a onclick="window.open(...)"aren't working for
this requirement. I even tried using a separate function and
attempting to return to the original window straight after using the
following function: Code:

View 7 Replies View Related

Change Parent Window When Modal Window Is Open?

Apr 14, 2009

i want to change parent window while modal Window opening or opened

my php code is

Code:
<li>
<div class='newsPopUpModal'>
<a href='#'

[Code].....

View 1 Replies View Related

Open A Selection From A Drop Down List In A New Window?

Nov 14, 2009

How can I open a selection from this drop down list in a new window?

<html>
<!-- Stop Underline script available from http://www.themssforum.com/FontpageProgramming/Hyperlink-underline/ -->

[code]....

View 6 Replies View Related

List Menu Open Into Blank Window

Apr 27, 2010

I have this list menu that needs to pop open a blank window in front of the already open webpage. It also needs to work in IE and hopefully Firefox if possible.[code]

View 1 Replies View Related

List Search Script - Links To Open In A New Window

Dec 12, 2010

I am using this script: [URL] All I want that I can't figure out is for the links to open in a new window. Nothing fancy just new/blank window. I am guessing it needs to be done in one of these 2 spots.. In the html, it must be in the HandleGoClick line found here:

[Code]....

View 1 Replies View Related

Call Window.open() From A Keypress Event?

Nov 11, 2007

I've got a script which is called by a keypress event, something like this:

<html>
<head>
<script type="text/javascript">
function respondToKey(e) {
keyPressed = String.fromCharCode(e.which);
if(keyPressed == 'g'){
alert('you pressed the g key');
window.open('http://google.com');
}
}

</script>
<title>Untitled</title>
</head>
<body onkeypress="respondToKey(event)">
hit the g key to open a google window
</body>
</html>

when you hit the right key, the alert appears, but the window.open() never happens. There's not even a message in the Error Console, just nothing.

Is this a security feature? Any way I can get around it? And, if it's a security feature, is the fact that it fails silently with no error message also a security feature? Because it's rather annoying.

View 2 Replies View Related

JQuery :: Detect If A Named Window Is Already Open And Change Focus To It?

Jul 5, 2011

I'm relatively new to jQ and would like to determine if a named window is already open. If it is then I want to change focus to that window/tab. The scenario is this. I have a link in App1 that opens a new window to an already existing linked (related) web form in App2. If the user forgets they have that window open in App2 and clicks the same link in App1 as before (to open the related form in App2,) it opens a window that is not the same window as the original window. I need App1 to detect if a window already exists in the browser of the same name and if so, change the browser focus to it.

View 4 Replies View Related

Existing Script - Change All My Links To External Sites To Open In A New Window

Jun 29, 2011

I have the existing code that will change all my links to external sites to open in a new window. I now want to change it to allow me to have a way that it will not do this if I put something special in the a href tag.

Code:

View 2 Replies View Related

JQuery :: Handling Window.change Event In IE

Jan 8, 2010

i'm trying to do some event delegation, and i can't seem to get the onchange event working in IE. i've tried:

$(document).change(function () { alert('fuck. me. IE sux'); }); $(document.body).change(function () { alert('fuck. me. again'); });

and later i have:

<select id="aSelect"> <option value="0">a first option</option> <option value="1">a second option</option> <option value="2">a third option</option> <option value="3">a fourth option</option> </select>

but this doesn't work in IE. i've also tried to wire these up manually: document.body.onchange = function (e) { alert('foo); }; and document.onchange, but those don't work either. what's the story here (other than the fact that IE is sucking balls)?

View 5 Replies View Related

JQuery :: Browser Window Size Change Event?

Jun 25, 2009

Does jquery have an event defined for when the user changes the size of his browser window? I couldn't find one, but sometimes I don't see the forest for the trees.

View 2 Replies View Related

Which Event Should Be Used To Call Logout On Window Close And Url Change?

Oct 7, 2009

Which javascript event should be used to call logout on window close and url change.
I want to call logout function on window close and URL change on my application.

I am calling logout functionon on <body onunload="doLogout();">, but onunload event is also called when refreshing the page. is there any specific event for Windoe close and URL change.

View 4 Replies View Related

Code - Void Window.open - Link Would Open In The Same Window?

Feb 7, 2009

I have this piece of code which is opening link in new window:

How to change this code so link would open in the same window?

Probably I should change this part: javascript:void window.open

View 1 Replies View Related

Links That Uses Window.open Then Open A New Designated Window

Jan 17, 2012

I have a problem on the links on my page im working.sorry guys still a noob and my english is not that good. :b. my question is like i have a list of packages of food. [link_a] [link_b] [link_c] and i have a function that i put in my head tag:

function linkA()
{
window.open('link_a.html','link','width=300,height=200,resizable=yes');
}

now i can go to linka.html by click my link <A HREF="javascript:linkA()" >link a</A> is there a way i can have one functions that can open a link depend on what page .when it clicks then go to its designated page or i have to stick on writing function for linkB ,C,D and so on.

View 7 Replies View Related

Open A Link On The Same Window Using Window.open Or Any Other Method?

Oct 19, 2011

How to open a link on the same window using window.open or any other method in JavaScript.

View 2 Replies View Related

Opening Overlay Window When Closing Or Navigating From The Current Window?

Apr 25, 2011

code to show ( overlay / modal window ) to the user when closing or navigating away from the page ( i want put in this window facebook share to make the user to share the page in his facebook ) , bytheway i wanna use it in my wordpress in every post could it be happen ?

View 1 Replies View Related

Open In New Browser Window (like With Target="_blank", Not Window.open)

Dec 1, 2011

Code: window.location but have it open in new browser window (like with target="_blank", not window.open)

View 7 Replies View Related

Thru Window.open Open A Word Document In Print Preview Mode

Jul 23, 2005

Through window.open or window.showmodaldialog, I want to open a word
or excel document in Print Preview mode. Bcos I don't want the user to
make any changes or save it but the user can ONLY VIEW OR take a print
out.

View 1 Replies View Related

Window.Open In FireFox - Click Very Quickly - Multiple Windows Open

Nov 16, 2009

I'm using an <A> tag with an onclick event to open a window with JS (window.open)... In FIREFOX, if I click very quickly, multiple windows open. Not a problem in IE.

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved