Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function(){
- // var windowId;
- function setWindowId(window){
- windowId = window;
- alert(windowId.id);
- }
- // get current window
- chrome.windows.getCurrent(setWindowId());
- alert(windowId.id);
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement