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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -