Question: > 
> **Possible Duplicate:**  
> 
> [How to open new browser window using javascript?](https://stackoverflow.com/questions/3616709/how-to-open-new-browser-window-using-javascript) 
> 
> 
> 

For example: <http://www.nowness.com/> > Click "Twitter"

I'm not asking about the Twitter API, just a generic window that I want to open up. jQuery can be used.

edit: Modal was the wrong term here. I wanted a popup, not a modal.

Answer: 
The problem isn't recursion. It's just that your first condition is always true: `endingIndex` is always greater than `beginningIndex`. That condition returns without recursion, so the function ends there.
You can do that using `for` loop like :

```
def find_index_equal_value(set):
    for i in range(0, len(set)):
        val = set[i]
        if(val == i):
           print "Index matches value."

```