Alert without close option - google-chrome

I am using chrome browser and have installed ad blocker plus plugin in it.
When i navigate to a specific page given below.
Times of India news page
I get a alert on the page, which doesn't have a close option as shown in the screen shot. To remove the alert we need to disable Ad block plus. How do we create these kind of alerts and how do we close the alert without disabling ad block plus

Related

How to avoid Chrome's automaticDownload limitations

I have a site that offers users the chance to download files by clicking a button which loads a rest request then uses file-saver to download it.
The second time a user in Chrome clicks this they get a popup blocker. The message is "This site attempted to download multiple files automatically". How does Chrome determine when to show this message? Can I do something to reset it?
The site is loaded as an iframe within microsoft teams. But I don't think that is the issue
Fire up Chrome, click the menu icon, and then click “Settings.” Alternatively, you can type chrome://settings/
Once in the Settings tab, scroll down to the bottom and click “Advanced.”
Scroll down to the Privacy and Security section and click on “Site Settings.”
Scroll down the list of settings until you see the “Automatic Downloads” option. Click on it.
By default, the feature is set to ask permission when a site tries to download files in succession. This is the recommended behavior, but if you want to block all sites from downloading multiple files automatically, toggle the switch to the Off position.

When designing website is opening new tab as bad as a popup window

My web application is mimicing the UI of my desktop application, flow is as follows
Select Task in browser window
Change any Options and then start
Show Progress in same browser window, the progress bar goess back to server every 5 seconds checking progress.
When task has completed we show report in new tab
and go back to Select task Window,
this is done by running following Javascript in progress page
window.open('/start','_self'); window.open('/reporturl','_blank');
This works fine on my PC but when trying on Safari on OSX and on Android phone and iPad one of two things happen
The progress page becomes the start page but the report page is not opened in tab
The Progress page becomes the report page
My question is does opening window in new tab with _blank have all the problems of using popup windows. If so should I modify my prcoess so that at stage 3 it just displays report page, and then add a back button or navigable footer to the report to allow user to get back to start page ?
I can think of some options you could use instead of new tab.
Modal with Ajax
-- With jQuery it is posible to open modal
dialogs they can be populated with html (or other data) fetched with ajax (async). I am a big fan of these and use them all over my projects. Users will not be annoyed with pop-up warning messages, etc. Once the content is read (or whatever) the user can simply close the dialog. (If I had to make your app I would certainly implement this).
Besides the jQuery dialogs, other modal/dialog scripts are out there. Check out Bootstrap Modal if you like it modern.
Serve report as download
-- Depending on what the user can/will do with the report, it might be interesting to write the report page in a way that it sends back a .pdf file, or another type of file, as download. Loading the URL in a new tab will now always start a download. Triggering this from JS without user interaction might be a problem though (same as with pop-up / new tab). Adding a button to trigger the download on complete will solve this.
I know the question was about the use of tabs.. But try to avoid it. Browsers handle it all in their own way. And many users get confused when suddenly stuff is opening in tabs when they did not ask for it. In case of pop-ups, it is possible for users to turn them of or convert into opening a new tab from within the browser settings. If they have been fiddling with browser defaults, you'll have troubles of keeping the 'flow' of the app the same for all users (and cross browser).

Responsive Google Ad doesn't show up on my website

I added a responsive Google Ad to our game's website, which is a simple static bootstrap based site:
http://dealoround.com which will resolve to
https://mrcsabatoth.github.io/DealORoundWebsite/
My problem is that no Ad shows up. First I put the Ad code at the end of the HTML. Then I thought that maybe it doesn't show up, because I'm just running the development version of the website from my local machine, but my AdSense account doesn't have any restrictions on who can display my ad unit. So I pushed my changes to GitHub, but still no luck. Finally I tried to move the code to the footer, also didn't help.
When I inspect the DOM, the ins element is there, but hidden. If I say window.adsbygoogle.push({}) to try to get it alive, nothing changes, but the function returns the value 2, whatever that means (does anyone know?).
I'm total newbie to AdSense. All helps are welcome.
I can see your ad perfectly, but only after I have paused 'AdBlock' on my browser.
See the below screenshot of your site:
Here is a short tutorial on how to disable AdBlock - http://www.wikihow.com/Disable-Adblock

How to get warning massage when clicking close(X) button of browser with tabs in Google Chrome

How to get a warning massage if i accidently click the close button of the chrome browser which have multiple tabs opened at that time?
I am a regular user of Crome and having this problem while using it. I normally open multiple tabs inside a single browser but sometimes i accidently click the close button of browser and as soon as the button is clicked crome does't give any warning issue about multiple active tabs and close the entire window.
Is the end user like me is browsing on normal crome window then he can open the websites again by checking the web history but if he is browsing inside private browser then he can't do anything(this happens with me very regularly because i normally browse in private browser). On the other hand if you accidently click the close button in mozilla which have multiple tabs open it throws a warning massage to the user and asks for his wish.
Go find an extension called "Keep One Pinned Tab". It may not be exactly the function you need, but if you search for other extensions, I am sure there is such an extension that does just that. If you can't find one, I suggest to learn how to develop extensions and make one yourself, you can share it with others when it's done.

Open Adsense Ads On Page Load

i have a website that has adsense ads embedded in the right sidebar area. the site basically contains multiple posts. I want the ads to launch whenever a post is viewed, i.e., when a user clicks on a link to view the post, it should launch the ad as well..
adsense provides a javascript that, i think, wouldn't suffice. please suggest a workaround..
You cannot automatically click Google Adsense ads. This is called click fraud and Google will detect it and ban you (and keep any money you've earned).