javascript - Refresh parent page with tabs -
i'm using page 4 tabs. labeled #tab1/#tab2/#tab3/#tab4. have edit function opens new window. if window closed through clicking submit or closing parent window should refreshed. works refreshes first tab. tell me how adjust code takes specific tab?
$(document).ready(function() { $("li").click(function(){ $(this).toggleclass("active"); $(this).next("div").stop('true','true').slidetoggle("slow"); }); }); window.onunload = refreshparent; function refreshparent() { window.opener.location.reload(); }
a simple solution set paren't url http://origilal.url#tab3
, reload() do.
afterwards, in init js function, parse window.location check tab mentioned in url, , select it.
Comments
Post a Comment