Si8 Si8 - 1 year ago 83
jQuery Question

Allow user to change URL in

I have the following code which opens a new window when a user clicks on a button:

$('.loginButton').click(function () {
var strString = $("#medlineSearch").val()
var strSearch = "";
var url = strSearch + strString;
var windowName = $(this).attr('id');, windowName, "height=750,width=1250,scrollbars=1,resizable=1,location=1");
// custom handling here
return false;

What I am looking to do is allow the user to enter something else in the address bar which seems to be read only.

Is there any way to change that?

Answer Source

If you want to be able to change it, set the target to _blank.

This will prevent the new page to open as popup, but as new page.
( ''
, '_blank'

The jsfiddle.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download