Pradeep Rawat

Pradeep Rawat

  • NA
  • 286
  • 7.4k

How to hide address bar in chrome.

Jun 15 2021 12:00 PM

I tried below code ..Can we do it in other way. 

 var settings = 'width=650,height=550,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,top=100,Left=350';
    url = page + '?TextBoxID=' + TextBoxID + '&isPostBack=' + isPostback + '&SearchOn=' + SearchOn + '&SearchCriteria=' + SearchCriteria + '&SearchSchemeCode=' + SearchSchemeCode + '&SearchSchemeCodes=' + SearchSchemeCodes + '&DDPOSchemeStatus=' + DDPOSchemeStatus;

  var iframe = '<html><head><style>body, html {height="100% ",width="100%"; margin: 0; padding: 0}</style></head><body><iframe src="'+url+'"  seamless="seamless" scrolling="no" style="height:calc(110% - 4px);width:calc(100% - 4px);" ></iframe></html

  popup = window.open('about:blank','',settings);
  popup.document.writeln(iframe)