c =を返してから、入力フィールドに書き込んで値を送信させようとしています。
var x = window.external.menuArguments.location.href; // IE Get URL Code
alert(x);
// http://site.com/design/page.html?c=235783&p=irol-IRHome
// this code below populates a html pop that is created on popup.
var parentwin = external.menuArguments;
var doc = parentwin.document;
var sel = doc.selection;
var rng = sel.createRange();
var str = new String(rng.text);
var html = new String(rng.htmlText);
var ops = "width=650,height=410,status=0,toolbar=0,menubar=0,resizable=1";
viewSourceWin = parentwin.open("about:blank","viewselectionscr",ops);
// open document for further output
viewSourceWin.document.open();
viewSourceWin.document.write("$(document).ready(function() {");
viewSourceWin.document.write("load = ?;");
viewSourceWin.document.write("$('#cmid').val(load);$('.go').click();");
viewSourceWin.document.write("});");
viewSourceWin.document.write("<input id='cmid'/><button class='go'>Go</button>")");