Hi, I have a link on my website call select location which I can click. once clicked a popup appears from where i can choose a location. ( code below )

I am looking to do a conditional statement, if it equals true make this popup appear automatically:

if($example!==1) {
I need some javascript in here which will show to popup box automatically

Thanks in advance

The Code:

<div class="pop_wrap">
<div id="light" class="white_content">
<div class="p_close"><a href = "javascript:void(0)" onclick = "document.getElementById('light').style.display='none';document.getElementById('fade').style.dis play ='none'">Close</a></div>
<div class="p_location_select_wrap">
<div class="p_logo"></div>
<div class="p_location_select_text"><span class="mid_grey_bold">Please select your location</span></div>
<?php $this->load->view('_blocks/select_country') ?>
<div id="fade" class="black_overlay"></div>